<html>
<head>
</head>
<meta http-equiv="Content-Type" content = "text/html; charset = utf-8"/>

<style type = "text/css">
<!--
.style1{
	font-family = LucidaHandwriting;
	font-size : 25px;
	font-weight : bold;
	//background-color:#FFCCCC;
}
.style4{
	font-family = Vernada, Arial, Helvetica, san-serif;
	font-size : 20px;
	font-weigth : bold;
}
-->

</style>

<body>
<?php
if(isset($_POST["dai"]) && isset($_POST["rong"]))
{
	$dai = $_POST["dai"];
	$rong = $_POST["rong"];
	$dt = $dai * $rong;
}
?>

<form name= "form1" id = "form1" method = "post" action= "tinhDienTichHinhChuNhat.php">
<table width = "300" border = "0" align = "center" cellpadding = "2.5" cellspacing= "2.5" style = "background-color:#CFFFFF">

<tr>
<td colspan = "2" align = "center"><span class = "style1">diện tích hình chữ nhật </span></td>
</tr>

<tr>

<td width = "200"><span class = "style4">Chiều dài</span></td>

<td width = "200"><label><input name = "dai" id = "dai" type = "text" value = "<?php if(isset($_POST["dai"])){echo $_POST["dai"];}?>" style = "background-color:#CCCCCC" size = "20px"/> </label> </td>

</tr>
<tr>

<td width = "200"><span class = "style4">Chiều rộng</span></td>

<td width = "200" ><label><input name = "rong" type = "text" id = "rong" value = "<?php if(isset($_POST["rong"])){echo $_POST["rong"];}?>" style = "background-color:#CCCCCC"/></label></td>

</tr>
<tr>

<td width = "200"><span class = "style4">Diện tích</span></td>

<td width = "200"><label><input name = "dt" type = "text" id= "dt" value="<?php if(isset($_POST["dt"])){echo $dt;}?>" size = "20" readonly = "true" style = "background-color:#FFCCCC"/></label></td>

</tr>
<tr>

<td colspan = "2" align = "center" ><label ><input type = "submit" name = "submit"  value= "Tính"/></label></td>

<td colspan = "2">&nbsp</td>

</tr>



</table>
</form>


</body>
</html>